package devicemanager

type IDevice interface {
	GetID() string
	GetMapName() string
	GetSiteID() string
	GetDeviceType() DeviceType
	OpenCMD() map[string]interface{}
	CloseCMD() map[string]interface{}
	OpenStatus() deviceStatus
	CloseStatus() deviceStatus
}

type deviceBase struct {
	id      string
	mapName string
	siteID  string
	devType DeviceType
}

func (dev deviceBase) GetID() string {
	return dev.id
}

func (dev deviceBase) GetMapName() string {
	return dev.mapName
}

func (dev deviceBase) GetSiteID() string {
	return dev.siteID
}

func (dev deviceBase) GetDeviceType() DeviceType {
	return dev.devType
}
